﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="search_box_hotel.ascx.cs"
    Inherits="NGU.WUC.search_box_hotel" %>
<ul class="menu" id="menu2">
    <li class="active"><a href="#searchroom">Tìm phòng<br />
        khách sạn</a></li>
    <li><a href="#searchbooking">Tìm phòng<br />
        mở rộng</a></li>
</ul>
<div class="content" id="searchroom">
    <form name="search" action="/DichVuKhachSan.aspx" method="get" >
    <input type="hidden" name="action" value="search" />
    <div class="input-rows">
        <div class="name-col">
            Khách sạn</div>
        <div class="select-col">
            <select name="hotel" id="hotel">
                <%
                    for (int i = 0; i < this.nccLst.Count; i++)
                    {
                %>
                <option value="<%=i %>">
                    <%=this.nccLst[i].TenNCC %></option>
                <% 
                    }
                %>
            </select>
        </div>
        <div class="clearfix">
        </div>
    </div>
    <div class="input-rows">
        <div class="name-col">
            Hạng phòng</div>
        <div id="hangphong" class="select-col">
            <select style="width: 160px;" name="hangphong">
                <%
                    for (int i = 0; i < this.hangPhongLst.Count; i++)
                    {
                %>
                <option value="<%=this.hangPhongLst[i].MaHangPhong.ToString() +'#' + this.hangPhongLst[i].TenHangPhong %>">
                    <%=this.hangPhongLst[i].TenHangPhong %></option>
                <% 
                    }
                %>
            </select>
        </div>
        <div class="clearfix">
        </div>
    </div>
    <div class="input-rows">
        <div class="name-col">
            Loại phòng</div>
        <div class="select-col">
            <select id="loaiphong" name="loaiphong">
                <option value="#">---Tất cả---</option>
                <%
                    for (int i = 0; i < this.loaiPhongLst.Count; i++)
                    {
                %>
                <option value="<%=this.loaiPhongLst[i].MaLoaiPhong.ToString() + '#' + this.loaiPhongLst[i].TenLoaiPhong%>">
                    <%=this.loaiPhongLst[i].TenLoaiPhong %></option>
                <% 
                    }
                %>
            </select>
        </div>
        <div class="clearfix">
        </div>
    </div>
    <div class="butt-submit">
        <input type="image" src="../images/butt-search.png" value="" />
        <%--<asp:LinkButton ID="searchBut" runat="server" CssClass="search_box_searchBut" Height="20px"
            Width="70px" onclick="searchBut_Click"></asp:LinkButton>--%>
    </div>
    </form>
</div>
<div class="content" id="searchbooking" style="display: none;">
    <form name="search_extend" method="get" action="/DichVuKhachSan.aspx">
    <input type="hidden" name="action" value="search_extend" />
    <div class="input-rows">
        <div class="name-col">
            Khách sạn</div>
        <div class="select-col">
            <select name="hotel">
                <%
                    for (int i = 0; i < this.nccLst.Count; i++)
                    {
                %>
                <option value="<%=i %>">
                    <%=this.nccLst[i].TenNCC %></option>
                <% 
                    }
                %>
            </select>
        </div>
        <div class="clearfix">
        </div>
    </div>
    <div class="input-rows">
        <div class="name-col">
            Ngày bắt đầu</div>
        <div id="fromdate_search_div" style="float:right; width:160px">
            <input type="text" name="fromdate" value="<%=DateTime.Now.ToShortDateString() %>"/>
        </div>
        <div class="clearfix">
        </div>
    </div>
    <div class="input-rows">
        <div class="name-col">
            Ngày kết thúc</div>
        <div id="todate_search_div" style="float:right; width:160px">
            <input type="text" name="todate" value="<%=DateTime.Now.ToShortDateString() %>"/>
        </div>
        <div class="clearfix">
        </div>
    </div>
    <div class="butt-submit">
        <input type="image" src="../images/butt-search.png" value="" />
    </div>
    </form>
</div>
